package com.ssy.lingxi.member.merchant.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 业务平台角色类型 - 数据来源于Pass平台的配置
 * @author 万宁
 * @version 2.0.0
 * @date 2020-06-13
 */
@Entity
@Table(schema = "public", name = "ms_mc_role_type", indexes = {@Index(name = "ms_mc_role_type_type_enum", columnList = "typeEnum")})
public class RoleTypeDO implements Serializable {
    private static final long serialVersionUID = 68783326942873058L;

    @Id
    @GeneratedValue(strategy= GenerationType.SEQUENCE,generator="role_type_seq")
    @SequenceGenerator(sequenceName="ms_mc_role_type_seq", name="role_type_seq",allocationSize = 1)
    private Long id;

    /**
     * 角色类型名称
     */
    @Column(columnDefinition = "varchar(20)", nullable = false)
    private String roleTypeName;

    /**
     * 角色类型枚举，定义在RoleTypeEnum中
     */
    @Column(columnDefinition = "int2")
    private Integer typeEnum;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRoleTypeName() {
        return roleTypeName;
    }

    public void setRoleTypeName(String roleTypeName) {
        this.roleTypeName = roleTypeName;
    }

    public Integer getTypeEnum() {
        return typeEnum;
    }

    public void setTypeEnum(Integer typeEnum) {
        this.typeEnum = typeEnum;
    }
}
